import { Injectable } from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {BMIForm} from '../vo/BMIForm';

@Injectable({
  providedIn: 'root'
})
export class BmiService{

  constructor(private http:HttpClient){ }

  private getBMIValueUxl = "http://localhost:/getBMIValue";
  getBMIValue(bmiform: BMIForm){
  return this.http.post(this.getBMIValueUxl, bmiform).toPromise();

  }
}
